﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace TinyBug.Models
{
	public class User
	{
		[Key, StringLength(30, MinimumLength=1), Display(Name="Nombre de usuario")]
		public string Username { get; set; }

		[Required, StringLength(50), Display(Name="Nombre")]
		public string Firstname { get; set; }

		[Required, StringLength(50), Display(Name="Apellido")]
		public string Lastname { get; set; }


		public virtual ICollection<Team> Teams { get; set; }
	}
}